package com.yohann.utils.result;

/**
 * <p>
 * 返回状态枚举
 * </p>
 *
 * @author Yohann
 * @since 2020/9/21
 */
public enum ResultInfo {
    //(状态码，提示信息)
    SUCCESS(20000,"成功"), ERROR(20001,"失败");

    //状态码
    private Integer code;

    //返回信息
    private String message;

    private ResultInfo(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}